#include "abstractdata.h"

AbstractData::AbstractData()
{
    id = -1;
}

int AbstractData::getId() const
{
    return id;
}

void AbstractData::setId(const int id)
{
    this->id = id;
}


QString AbstractData::getName() const
{
    return name;
}

void AbstractData::setName(const QString name)
{
    this->name = name;
}


bool AbstractData::getHeart() const
{
    return heart.isHeart();
}

void AbstractData::setHeart(const bool heart)
{
    this->heart.setHeart(heart);
}

QVariant AbstractData::getHeartDelegate() const
{
    return QVariant::fromValue(heart);
}

QVariant AbstractData::getAdd() const
{
    return QVariant::fromValue(addSvg);
}

QVariant AbstractData::getPlay() const
{
    return QVariant::fromValue(playSvg);
}
